home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d10 / pcm_d1.arc / ARCHIVE.BAT next >
DOS Batch File  |  1989-06-12  |  5KB  |  169 lines

  1. echo off
  2. cls
  3.  
  4. echo                         ═════════════════════════════
  5. echo                         THE PERSONAL CONTACTS MANAGER
  6. echo                         ═════════════════════════════
  7. echo  
  8. echo                      Archive: Hard Disk to Diskette Copy
  9. echo                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  10. echo                This program is similar to TOFLOPPY.BAT. It
  11. echo                backs up your entire Contacts Manager System
  12. echo                from your hard disk (C: drive) onto one blank
  13. echo                diskette in your A: drive. It uses an archived
  14. echo                format which reduces the required disk space.
  15. echo  
  16. echo                The program on your hard disk will remain intact.
  17. echo  
  18. echo  
  19. echo                Now insert a blank, formatted disk into drive A.
  20. echo  
  21. echo                   Then press the ─┘ or ENTER key when ready.
  22. echo  
  23. echo  
  24. echo                To abort at any time, press CTRL and C together.
  25. echo                         (Own copy of PKARC.COM required.)
  26.  
  27. pause >NUL
  28.  
  29. c:
  30. cd c:\
  31. if not exist contacts.exe   cd c:\contacts       >NUL
  32.  
  33. if not exist pkarc.com goto NOARC
  34. if not exist pkxarc.com goto NOARC
  35.  
  36.  
  37. cls
  38. echo                       The archive will now be created.
  39. echo  
  40. echo                   Please watch and wait for a few minutes...
  41. echo  
  42.  
  43. if exist contacts.arc erase contacts.arc
  44. pkarc a CONTACTS.ARC
  45.  
  46.  
  47.  
  48. :TRANSFER
  49. cls
  50. echo               The archived file is being copied to your A drive.
  51. echo  
  52. echo                           Please wait a few minutes...
  53.  
  54. if exist a:*.*     if exist Y       erase a:\*.* <Y  >NUL
  55.  
  56. copy contacts.arc   a:            >NUL
  57. copy unfold.bat     a:            >NUL
  58. copy pkxarc.com     a:            >NUL
  59.  
  60. if not exist a:\contacts.arc goto MINSIZE
  61. if not exist a:\unfold.bat   goto MINSIZE
  62. if not exist a:\pkxarc.com   goto MINSIZE
  63. GOTO PREFIN
  64.  
  65.  
  66. :PREFIN
  67. if not exist a:\contacts.arc goto TOOBIG
  68. if not exist a:\unfold.bat   goto TOOBIG
  69. if not exist a:\pkxarc.com   goto TOOBIG
  70. GOTO SUCCESS
  71.  
  72.  
  73. :SUCCESS
  74. c:
  75. cd c:\
  76. cls
  77. echo  
  78. echo                Your diskette now contains an arced copy of the system.
  79. echo  
  80. echo                The 3 files CONTACTS.ARC, UNFOLD.BAT and PKXARC can be
  81. echo                kept as backup or to install a new copy of the Contacts
  82. echo                Manager by typing A: UNFOLD ─┘.
  83.  
  84. echo  
  85. GOTO END
  86.  
  87.  
  88. :NOARC
  89. c:
  90. cd c:\
  91. cls
  92. echo  
  93. echo                      Two programs called PKARC.COM and PKXARC.COM
  94. echo                      are required to use the archive functions.
  95. echo                      They should be located in your current directory.
  96. echo  
  97. echo                      Please use TOFLOPPY.BAT instead. This will
  98. echo                      give you a genuine DOS copy onto 2 diskettes.
  99. echo  
  100. echo                      Now press your ─┘ or ENTER key to exit please.
  101. pause >NUL
  102. echo  
  103. GOTO END
  104.  
  105.  
  106. :MINSIZE
  107. cls
  108. echo  
  109. echo                  The program is trying to reduce your CONTACTS.ARC
  110. echo                  file so that it will fit onto a 360K diskette.
  111. echo  
  112. echo                  Two duplicate files, UNFOLD.BAT and PKXARC.COM are
  113. echo                  being excluded from the archive.
  114. echo  
  115. echo  
  116. echo                             Please watch and wait ...
  117. echo  
  118. echo  
  119.  
  120. pkarc d contacts unfold.bat
  121. pkarc d contacts pkxarc.com
  122. if exist letter  pkarc d contacts letter
  123.  
  124. cls
  125. echo              The archived file is being copied to your A drive.
  126. echo  
  127. echo                          Please wait a few minutes...
  128.  
  129. if exist a:*.*     if exist Y       erase a:\*.* <Y  >NUL
  130.  
  131. copy contacts.arc   a:            >NUL
  132. copy unfold.bat     a:            >NUL
  133. copy pkxarc.com     a:            >NUL
  134. GOTO PREFIN
  135.  
  136.  
  137. :TOOBIG
  138. cls
  139. echo  
  140. echo  
  141. echo  
  142. echo                    The file CONTACTS.ARC has been successfully created.
  143. echo  
  144. echo                    However, the files appear to be too big to fit onto
  145. echo                    a single floppy diskette. You require the files
  146. echo                    CONTACTS.ARC, UNFOLD.BAT and PKXARC.COM.
  147. echo  
  148. echo                    There are 2 possible solutions:
  149. echo  
  150. echo                    1. You could use TOFLOPPY.BAT to create your backup
  151. echo                       copies instead of using ARCHIVE.BAT.
  152. echo  
  153. echo                    2. You could CLEAR the data bank from within the
  154. echo                       Contacts Manager program under the maintenance
  155. echo                       menu. This will reduce the file size considerably.
  156. echo                       Then run the ARCHIVE.BAT program again.
  157. echo  
  158. echo                    TOFLOPPY.BAT will create a genuine DOS copy of
  159. echo                    all the necessary files onto 2 or 3 diskettes.
  160. echo  
  161. echo  
  162. GOTO END
  163.  
  164.  
  165.  
  166.  
  167.  
  168. :END
  169.